package com.ruoyi.datastatistics.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公摊配置对象 public_share
 * 
 * @author gdqt
 * @date 2025-05-13
 */
@TableName("t_public_share")
public class PublicShare extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 租户号 */
    @Excel(name = "租户号")
    @TableField("tenant_id")
    private String tenantId;

    /** 区域主键 */
    @Excel(name = "区域主键")
    @TableField("area_id")
    private String areaId;

    /** 公摊名称 */
    @Excel(name = "公摊名称")
    @TableField("public_share_name")
    private String publicShareName;

    /** 能耗类型 */
    @Excel(name = "能耗类型")
    @TableField("energy_type")
    private Long energyType;

    /** 地址 */
    @Excel(name = "地址")
    @TableField("addr")
    private String addr;

    @TableField(exist = false)
    private String sheetsCode;

    @TableField(exist = false)
    private String userId;
    @TableField(exist = false)
    private String gjUserIds;

    @TableField(exist = false)
    private String sourceUserId;
    @TableField(exist = false)
    private String targetUserId;
    @TableField(exist = false)
    private Long[] publicShareIds;

    public String getSourceUserId() {
        return sourceUserId;
    }

    public void setSourceUserId(String sourceUserId) {
        this.sourceUserId = sourceUserId;
    }

    public String getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(String targetUserId) {
        this.targetUserId = targetUserId;
    }

    public Long[] getPublicShareIds() {
        return publicShareIds;
    }

    public void setPublicShareIds(Long[] publicShareIds) {
        this.publicShareIds = publicShareIds;
    }

    public String getGjUserIds() {
        return gjUserIds;
    }

    public void setGjUserIds(String gjUserIds) {
        this.gjUserIds = gjUserIds;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSheetsCode() {
        return sheetsCode;
    }

    public void setSheetsCode(String sheetsCode) {
        this.sheetsCode = sheetsCode;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setAreaId(String areaId) 
    {
        this.areaId = areaId;
    }

    public String getAreaId() 
    {
        return areaId;
    }
    public void setPublicShareName(String publicShareName) 
    {
        this.publicShareName = publicShareName;
    }

    public String getPublicShareName() 
    {
        return publicShareName;
    }
    public void setEnergyType(Long energyType) 
    {
        this.energyType = energyType;
    }

    public Long getEnergyType() 
    {
        return energyType;
    }
    public void setAddr(String addr) 
    {
        this.addr = addr;
    }

    public String getAddr() 
    {
        return addr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("areaId", getAreaId())
            .append("publicShareName", getPublicShareName())
            .append("energyType", getEnergyType())
            .append("addr", getAddr())
            .toString();
    }
}
